<?php
    require_once './GestorModelo.php';
    $modelos = GestorModelo::getListaModelos($modelo);
    while ($rows = mysqli_fetch_array($modelos)) {
        echo "<tr>";
        echo "<td align='center'>".$rows['MARCA']."</td>";
        echo "<td style='padding-left:10px'>".$rows['MODELO']."</td>";
        echo "<td align='center'>".$rows['CONSUMO']."</td>";
        echo "<td align='center'>".$rows['EMISION']."</td>";
        echo "<td align='center'><img src='../img/".$rows['CENERGETICA'].".gif'></td>";
        echo "<td align='center'><a href='formulario_editar_modelos.php?marca=".$rows['MARCA']."&modelo=".$rows['MODELO']."&consumo=".$rows['CONSUMO']."&emision=".$rows['EMISION']."&cenergetica=".$rows['CENERGETICA']."'><img src='../img/editar.jpg' width='30px' height='30px'></a></td>";
        echo "<td align='center'><a href='formulario_borrar_modelos.php?marca=".$rows['MARCA']."&idmodelo=".$rows['ID']."&modelo=".$rows['MODELO']."'><img src='../img/eliminar.jpg' width='30px' height='30px'></a></td>";
        echo "</tr>";
    }
          
?>
